package com.dhsc.controller.ywjk.cgyhjh;

import com.dhsc.domain.jkzx.ywjk.cgyhjh.TcgYcVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.ywjk.cgyhjh.ICgyclxwhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: CgyclxwhController
 * @Description: 存管异常类型维护
 * @date: 2024/2/6 9:34
 * @author: jwj
 */
@Controller
@RequestMapping("/ywjk/cgyhjh")
public class CgyclxwhController {

    @Autowired
    private ICgyclxwhService cgyclxwhService;

    /**
     * @Description: 存管异常类型维护查询
     * @MessageName:queryCgyclx
     * @Param: tcgYcVo
     * @return: LayuiTableVo
     * @Author: jwj
     * @Date: 2024/2/6 9:47
     */
    @RequestMapping("/queryCgyclx")
    @ResponseBody
    public LayuiTableVo queryCgyclx(TcgYcVo tcgYcVo)
    {
        return cgyclxwhService.queryCgyclx(tcgYcVo);
    }

    /**
     * @Description: 更新存管异常类型
     * @MessageName:updateTcgYc
     * @Param: tcgYcVo
     * @return: ResponseObject
     * @Author: jwj
     * @Date: 2024/2/7 10:06
     */
    @RequestMapping("/updateTcgYc")
    @ResponseBody
    public ResponseObject updateTcgYc(TcgYcVo tcgYcVo)
    {
        return cgyclxwhService.updateTcgYc(tcgYcVo);
    }

}
